package com.kaili.basic.mapper;


import com.kaili.basic.pojo.entity.WarehousingApplication;
import com.kaili.basic.pojo.entity.WarehousingProduct;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


/**
 * Created by xxx on 18-4-25.
 */

@Mapper
public interface WarehousingProductMapper {

    //添加入库产品
    int addWarehousingProduct(WarehousingProduct warehousingProduct);

    //删除入库产品
    int deleteWarehousingProduct(WarehousingProduct warehousingProduct);

    //删除入库产品
    int deleteWarehousingProductList(Map<String, Object> map);

    //修改入库产品
    int updateWarehousingProduct(WarehousingProduct warehousingProduct);

    //修改状态（确认或者取消）
    int updateConfirmToCancel(WarehousingProduct warehousingProduct);

    //根据id查询获取入库产品
    WarehousingProduct getWarehousingProductById(Long id);

    //根据id查询获取入库产品（包括删除的）
    WarehousingProduct getWarehousingProductByIdAll(Long id);

    //根据入库申请表id查询获取入库产品集合
    List<WarehousingProduct> getWarehousingProductList(Long applyId);
}
